<?php
// $Id: footer.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $
//  ------------------------------------------------------------------------ //
//                XOOPS - PHP Content Management System                      //
//                    Copyright (c) 2000 XOOPS.org                           //
//                       <http://www.xoops.org/>                             //
//  ------------------------------------------------------------------------ //
//  This program is free software; you can redistribute it and/or modify     //
//  it under the terms of the GNU General Public License as published by     //
//  the Free Software Foundation; either version 2 of the License, or        //
//  (at your option) any later version.                                      //
//                                                                           //
//  You may not change or alter any portion of this comment or credits       //
//  of supporting developers from this source code or any supporting         //
//  source code which is considered copyrighted (c) material of the          //
//  original comment or credit authors.                                      //
//                                                                           //
//  This program is distributed in the hope that it will be useful,          //
//  but WITHOUT ANY WARRANTY; without even the implied warranty of           //
//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            //
//  GNU General Public License for more details.                             //
//                                                                           //
//  You should have received a copy of the GNU General Public License        //
//  along with this program; if not, write to the Free Software              //
//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA //
//  ------------------------------------------------------------------------ //

if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;

if( !defined( 'XOOPS_CUBE_LEGACY' ) ) {

if (is_object($xoopsTpl) && ($news_right_wide_theme === true)) {
$xoopsTpl->assign('xoops_showrblock', 0);
}
elseif (is_object($xoopsTpl)&& ($news_left_wide_theme === true)) {
$xoopsTpl->assign('xoops_showlblock', 0);
}
elseif (is_object($xoopsTpl)&& ($news_both_wide_theme === true)) {
$xoopsTpl->assign('xoops_showrblock', 0);
$xoopsTpl->assign('xoops_showlblock', 0);
}

}
else {

//in case of xoopscube
if (is_object($GLOBALS['xoopsTpl']) && ($news_right_wide_theme === true)) {
$GLOBALS['show_rblock'] = 0;
}
elseif (is_object($GLOBALS['xoopsTpl'])&& ($news_left_wide_theme === true)) {
$GLOBALS['show_lblock'] = 0;
}
elseif (is_object($GLOBALS['xoopsTpl'])&& ($news_both_wide_theme === true)) {
$GLOBALS['show_rblock'] = 0;
$GLOBALS['show_lblock'] = 0;
}

}

//
//wanikoo
$xoopsTpl->assign('newsshowextrafunc', $news_show_extrafunc);
$xoopsTpl->assign('newshideextrafunc', $news_hide_extrafunc);
$xoopsTpl->assign('newsshowsearch', $news_show_search);
$xoopsTpl->assign('newsshowlogo', $news_show_logo);
$xoopsTpl->assign('newslogoimage', $logoimage);
$xoopsTpl->assign('newsshowfeed', $news_show_feed);
$xoopsTpl->assign('newsshowthemechanger', $news_show_themechanger);
$xoopsTpl->assign('newsadcodes', $news_adcodes);

//wanikoo
$can_print = 0;
$can_pdf = 0;
$can_qrcode = 0;
$can_friend = 0;
$can_bookmark = 0;
//print func
if ( $news_can_print == 0 ) {
	$can_print = 0;
}
else if ( $news_can_print == 1) {
	$can_print = 1;
}
else if ( $news_can_print == 2) {
	if ( $xoopsUser ) {
	$can_print =1;
	}
	else {
	$can_print =0;
	}
}
else {
	$can_print = 0;
}

if ( empty($can_print) ) {
$xoopsTpl->assign('newsextrafuncprint', false);
}
else {
$xoopsTpl->assign('newsextrafuncprint', true);
}
//pdf func
if ( $news_can_pdf == 0 ) {
	$can_pdf = 0;
}
else if ( $news_can_pdf == 1) {
	$can_pdf = 1;
}
else if ( $news_can_pdf == 2) {
	if ( $xoopsUser ) {
	$can_pdf =1;
	}
	else {
	$can_pdf =0;
	}
}
else {
	$can_pdf = 0;
}

if ( empty($can_pdf) ) {
$xoopsTpl->assign('newsextrafuncpdf', false);
}
else {
$xoopsTpl->assign('newsextrafuncpdf', true);
}
//qrcode func
if ( $news_can_qrcode == 0 ) {
	$can_qrcode = 0;
}
else if ( $news_can_qrcode == 1) {
	$can_qrcode = 1;
}
else if ( $news_can_qrcode == 2) {
	if ( $xoopsUser ) {
	$can_qrcode =1;
	}
	else {
	$can_qrcode =0;
	}
}
else {
	$can_qrcode = 0;
}

if ( empty($can_qrcode) ) {
$xoopsTpl->assign('newsextrafuncqrcode', false);
}
else {
$xoopsTpl->assign('newsextrafuncqrcode', true);
}

//ver3.0
$xoopsTpl->assign('lang_print', _NW_PRINT);
$xoopsTpl->assign('lang_pdf', _NW_PDF);
$xoopsTpl->assign('lang_qrcode', _NW_QRCODE);
$xoopsTpl->assign('lang_bookmark', _NW_BOOKMARK);
$xoopsTpl->assign('lang_feedsubscript', _NW_FEEDSUBSCRIPT);
$xoopsTpl->assign('lang_feedsubscript_desc', _NW_FEEDSUBSCRIPT_DESC);
$xoopsTpl->assign('lang_minimizeblock', _NW_MINIMIZEBLOCK);
$xoopsTpl->assign('lang_restoreblock', _NW_RESTOREBLOCK);
$xoopsTpl->assign('lang_gototop', _NW_GOTOTOP);
$xoopsTpl->assign('lang_gotobottom', _NW_GOTOBOTTOM);
$xoopsTpl->assign('lang_rssfeed', _NW_RSSFEED);
$xoopsTpl->assign('lang_atomfeed', _NW_ATOMFEED);
$xoopsTpl->assign('lang_pdafeed', _NW_PDAFEED);
$xoopsTpl->assign('lang_rssfeed_topic', _NW_RSSFEED_TOPIC);
$xoopsTpl->assign('lang_atomfeed_topic', _NW_ATOMFEED_TOPIC);
$xoopsTpl->assign('lang_pdafeed_topic', _NW_PDAFEED_TOPIC);
$xoopsTpl->assign('lang_topicnav', _NW_TOPICC);

//ver3.0 friend
//friend func
if ( $news_can_friend == 0 ) {
	$can_friend = 0;
}
else if ( $news_can_friend == 1) {
	$can_friend = 1;
}
else if ( $news_can_friend == 2) {
	if ( $xoopsUser ) {
	$can_friend =1;
	}
	else {
	$can_friend =0;
	}
}
else {
	$can_friend = 0;
}

if ( empty($can_friend) ) {
$xoopsTpl->assign('newsextrafuncfriend', false);
}
else {
$xoopsTpl->assign('newsextrafuncfriend', true);
}
//ver3.0 bookmark
//bookmark func
if ( $news_can_bookmark == 0 ) {
	$can_bookmark = 0;
}
else if ( $news_can_bookmark == 1) {
	$can_bookmark = 1;
}
else if ( $news_can_bookmark == 2) {
	if ( $xoopsUser ) {
	$can_bookmark =1;
	}
	else {
	$can_bookmark =0;
	}
}
else {
	$can_bookmark = 0;
}

if ( empty($can_bookmark) ) {
$xoopsTpl->assign('newsextrafuncbookmark', false);
}
else {
$xoopsTpl->assign('newsextrafuncbookmark', true);
}

//ver2.5
$xoopsTpl->assign('news_weburl', XOOPSNEWSURL);
if (file_exists(XOOPSNEWSIMGPATH."/".$news_theme)) {
$xoopsTpl->assign('news_imgurl', XOOPSNEWSIMGURL."/".$news_theme);
}
else {
$xoopsTpl->assign('news_imgurl', XOOPSNEWSIMGURL);
}

include_once XOOPS_ROOT_PATH.'/footer.php';

?>